package com.dongdongshop.api;

import com.dongdongshop.common.Result;
import com.dongdongshop.dto.ItemCatDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdongshop-admin-service")
public interface ItemCatServiceApi {
    //三级联动
    @PostMapping("/itemcat/getByParentId")
    Result<ItemCatDTO> getByParentId(@RequestParam Long parentId);

    @PostMapping("/itemcat/getId")
    Result<ItemCatDTO> getId(@RequestParam Long parentId);

    @PostMapping("/TypeTemplateController/selectById")
    Result selectById(@RequestParam Long id);

    @PostMapping("/itemcat/getAll")
    Result getAll();
}
